home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 2,801 to 2,900 / aol-file-protocol-4400-2801-to-2900.zip / AOLDLs / C++ Files Library / HyperCuber Source / HyperCuber 2.0 Source.sit / HyperCuber 2.0 Source / CPrefs.h < prev    next >
Text File  |  1993-08-27  |  660b  |  28 lines

  1. //|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2. //| CPrefs.h
  3. //|
  4. //| This is the interface to the Preferences class.
  5. //|_________________________________________________________
  6.  
  7. #pragma once
  8. #include <CObject.h>
  9.  
  10. class CPrefs : public CObject
  11.     {
  12.     
  13.     Str255    filename;                //  Name of preferences file
  14.     short    size;                    //  Size of preferences structure
  15.     short    current_version;        //  Version number of current preferences
  16.     
  17.     virtual short    *GetPrefsPointer(void);
  18.     virtual void    Update(void);
  19.     
  20.   public:
  21.  
  22.     void            IPrefs(Str255 the_filename, short prefs_size, short version);
  23.     virtual void    SetDefaults(void);
  24.     void            Load(void);
  25.     void            Save(void);
  26.  
  27.     };
  28.